package com.infore.siteManagement.entity.otherEntity;

import java.io.Serializable;
import java.sql.Timestamp;

/**  
* @ClassName: SysUser  
* @Description: 用户实体类  
* @author 谭红波  
* @date 2017年9月1日  
*    
*/ 
public class SysUser implements Serializable {
    private static final long serialVersionUID = 1L;

    private String userId;        //用户id
    
    private String userName;    //用户名称
    
    private String password;    //用户密码
    
    private String userAccount;    //账号  ，唯一,必填
    
    private Integer userType;    //用户类型，0为普通用户，1为企业用户   （2宇星专员  3 运维专员 培训库用到）
    
    private String areaId;        //区域id
    
    private SysRole role;        //角色id
    
    private String email;        //邮箱
    
    private String phonenb;    //电话
    
    private String fixedTelphone;    //电话
    
    private Timestamp createTime;    //创建时间
    
    private String createUserId;    //创建人
    
    private Timestamp loginTime;    //登录时间
    
    private Integer loginNum;        //登陆次数
    
    private Integer status;            //用户状态
    
    private Integer wrongpwdno;     //登录错误次数
    
    private String gender;            //性别
    
    private String imgurl;            //图片地址
    
    private Integer admin;            //是否是管理员
    
    private Integer serialNumber;
    
    private String educ;//学历
    
    private String pcOrig; //籍贯
    
    private TBranchOfc branchOfc; //分公司
    
    private TOpCen opCen; //运营中心
    
    private String appCode; //系统编号
    
    private String plId; //平台id
    
    private String warner;
    
    
    public String getWarner() {
		return warner;
	}
	public void setWarner(String warner) {
		this.warner = warner;
	}
	public String getUserId() {
        return userId;
    }
    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getUserName() {
        return userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public Integer getUserType() {
		return userType;
	}
	public void setUserType(Integer userType) {
		this.userType = userType;
	}
	public String getUserAccount() {
        return userAccount;
    }
    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }
    public String getAreaId() {
        return areaId;
    }
    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }
    public Timestamp getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
    public String getCreateUserId() {
        return createUserId;
    }
    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }
    
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    
    
    
    public SysRole getRole() {
        return role;
    }
    public void setRole(SysRole role) {
        this.role = role;
    }
    public String getEmail() {
        return email;
    }
    public void setEmail(String email) {
        this.email = email;
    }
    public String getPhonenb() {
        return phonenb;
    }
    public void setPhonenb(String phonenb) {
        this.phonenb = phonenb;
    }
    
    public String getFixedTelphone() {
		return fixedTelphone;
	}
	public void setFixedTelphone(String fixedTelphone) {
		this.fixedTelphone = fixedTelphone;
	}
	public Timestamp getLoginTime() {
        return loginTime;
    }
    public void setLoginTime(Timestamp loginTime) {
        this.loginTime = loginTime;
    }
    public Integer getLoginNum() {
        if (loginNum == null) {
            loginNum = 0;
        }
        return loginNum;
    }
    public void setLoginNum(Integer loginNum) {
        this.loginNum = loginNum;
    }
    public Integer getStatus() {
        return status;
    }
    public void setStatus(Integer status) {
        this.status = status;
    }
    public Integer getWrongpwdno() {
        if (wrongpwdno == null) {
            wrongpwdno = 0;
        }
        return wrongpwdno;
    }
    public void setWrongpwdno(Integer wrongpwdno) {
        this.wrongpwdno = wrongpwdno;
    }
    
    
    
    public String getGender() {
        return gender;
    }
    public void setGender(String gender) {
        this.gender = gender;
    }
    public String getImgurl() {
        return imgurl;
    }
    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }
    public Integer getAdmin() {
    	if (admin == null) {
    		admin = 0;
        }
        return admin;
    }
    public void setAdmin(Integer admin) {
        this.admin = admin;
    }
	public Integer getSerialNumber() {
		return serialNumber;
	}
	public void setSerialNumber(Integer serialNumber) {
		this.serialNumber = serialNumber;
	}
    public TBranchOfc getBranchOfc() {
        return branchOfc;
    }
    public void setBranchOfc(TBranchOfc branchOfc) {
        this.branchOfc = branchOfc;
    }
    public TOpCen getOpCen() {
        return opCen;
    }
    public void setOpCen(TOpCen opCen) {
        this.opCen = opCen;
    }
    public String getEduc() {
        return educ;
    }
    public void setEduc(String educ) {
        this.educ = educ;
    }
    public String getPcOrig() {
        return pcOrig;
    }
    public void setPcOrig(String pcOrig) {
        this.pcOrig = pcOrig;
    }
    public String getAppCode() {
        return appCode;
    }
    public void setAppCode(String appCode) {
        this.appCode = appCode;
    }
    public String getPlId() {
        return plId;
    }
    public void setPlId(String plId) {
        this.plId = plId;
    }
    
}
